###############################################
# XENOMORPH CAPTIVE QUEEN - menu opener edict
# Activating this edict opens the captor-side Captive Queen menu
# (xeno_qcaptive.1), mirroring the Captive Pits edict pattern.
# Visible only while a Queen is held AND not on the 2-month interaction cooldown.
###############################################

xeno_visit_captive_queen = {
	length = 0
	icon = "GFX_edict_type_policy"

	resources = {
		category = edicts
		cost = {
		}
	}

	potential = {
		exists = owner
		owner = {
			any_owned_leader = { has_leader_flag = xeno_held_queen }
			NOT = { has_country_flag = xeno_queen_visit_cooldown }
		}
	}

	effect = {
		country_event = { id = xeno_qcaptive.1 }
	}

	ai_weight = {
		weight = 0
	}
}
